<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Java API Reference for Android: com.juphoon.cloud.JCStorageItem Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Java API Reference for Android
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>com</b></li><li class="navelem"><b>juphoon</b></li><li class="navelem"><b>cloud</b></li><li class="navelem"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html">JCStorageItem</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">com.juphoon.cloud.JCStorageItem Class Reference<div class="ingroups"><a class="el" href="group___xE6_x96_x87_xE4_xBB_xB6_xE5_xAD_x98_xE5_x82_xA8_xE6_xA8_xA1_xE5_x9D_x97.html">文件存储模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for com.juphoon.cloud.JCStorageItem:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:adfb15128d6b11390cd2790168732f4eb"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html#adfb15128d6b11390cd2790168732f4eb">getFileId</a> ()</td></tr>
<tr class="separator:adfb15128d6b11390cd2790168732f4eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b9c14414bc61507b440a2adae0bda06"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html#a9b9c14414bc61507b440a2adae0bda06">getUri</a> ()</td></tr>
<tr class="separator:a9b9c14414bc61507b440a2adae0bda06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af37f219122e1af09d3f90f77994597d1"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html#af37f219122e1af09d3f90f77994597d1">getPath</a> ()</td></tr>
<tr class="separator:af37f219122e1af09d3f90f77994597d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaad389b5df09e87b96e1ee1dc043eb8d"><td class="memItemLeft" align="right" valign="top">.ItemDirection int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html#aaad389b5df09e87b96e1ee1dc043eb8d">getDirection</a> ()</td></tr>
<tr class="separator:aaad389b5df09e87b96e1ee1dc043eb8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bb7cbcb15b3a4b791ceff6083612213"><td class="memItemLeft" align="right" valign="top">.ItemState int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html#a8bb7cbcb15b3a4b791ceff6083612213">getState</a> ()</td></tr>
<tr class="separator:a8bb7cbcb15b3a4b791ceff6083612213"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5266f8345b128f4f48a209f733de070a"><td class="memItemLeft" align="right" valign="top">.StorageReason int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html#a5266f8345b128f4f48a209f733de070a">getReason</a> ()</td></tr>
<tr class="separator:a5266f8345b128f4f48a209f733de070a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3f36f1bb43af10a374a09eff76f15c2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html#af3f36f1bb43af10a374a09eff76f15c2">getProgress</a> ()</td></tr>
<tr class="separator:af3f36f1bb43af10a374a09eff76f15c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f7c8688463fd019b37673ce152397ff"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html#a5f7c8688463fd019b37673ce152397ff">getFileSize</a> ()</td></tr>
<tr class="separator:a5f7c8688463fd019b37673ce152397ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a820917d77ea0d9d756b7df4acf15c549"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html#a820917d77ea0d9d756b7df4acf15c549">getCookie</a> ()</td></tr>
<tr class="separator:a820917d77ea0d9d756b7df4acf15c549"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54a461566e9fdf74d762a6236b643e77"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html#a54a461566e9fdf74d762a6236b643e77">getOperationId</a> ()</td></tr>
<tr class="separator:a54a461566e9fdf74d762a6236b643e77"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a4182e10e6758b0b5c1a020fb5eb26099"><td class="memItemLeft" align="right" valign="top"><a id="a4182e10e6758b0b5c1a020fb5eb26099"></a>
<a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage_item.html">JCStorageItem</a>&#160;</td><td class="memItemRight" valign="bottom"><b>clone</b> ()</td></tr>
<tr class="separator:a4182e10e6758b0b5c1a020fb5eb26099"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>文件存储对象 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="adfb15128d6b11390cd2790168732f4eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adfb15128d6b11390cd2790168732f4eb">&#9670;&nbsp;</a></span>getFileId()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String com.juphoon.cloud.JCStorageItem.getFileId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回文件唯一标识符</p>
<dl class="section return"><dt>Returns</dt><dd>文件唯一标识符 </dd></dl>

</div>
</div>
<a id="a9b9c14414bc61507b440a2adae0bda06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b9c14414bc61507b440a2adae0bda06">&#9670;&nbsp;</a></span>getUri()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String com.juphoon.cloud.JCStorageItem.getUri </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回文件链接</p>
<dl class="section note"><dt>Note</dt><dd>上传文件可获得</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>文件链接 </dd></dl>

</div>
</div>
<a id="af37f219122e1af09d3f90f77994597d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af37f219122e1af09d3f90f77994597d1">&#9670;&nbsp;</a></span>getPath()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String com.juphoon.cloud.JCStorageItem.getPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回文件本地路径</p>
<dl class="section note"><dt>Note</dt><dd>发送时为发送文件路径，接收时为文件下载保存路径</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>文件本地路径 </dd></dl>

</div>
</div>
<a id="aaad389b5df09e87b96e1ee1dc043eb8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaad389b5df09e87b96e1ee1dc043eb8d">&#9670;&nbsp;</a></span>getDirection()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">.ItemDirection int com.juphoon.cloud.JCStorageItem.getDirection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取上传还是下载</p>
<dl class="section return"><dt>Returns</dt><dd>文件传输方向：<ul>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage.html#ac779354c2bcb777b7803a3f75f21e015">DIRECTION_UPLOAD</a> : 上传</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage.html#af19ef8057df6b3d5fe11aaec219459a4">DIRECTION_DOWNLOAD</a> : 下载 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a8bb7cbcb15b3a4b791ceff6083612213"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bb7cbcb15b3a4b791ceff6083612213">&#9670;&nbsp;</a></span>getState()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">.ItemState int com.juphoon.cloud.JCStorageItem.getState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取传输状态</p>
<dl class="section return"><dt>Returns</dt><dd>传输状态：<ul>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage.html#ac7ab0798965d81ebeb6bb4ba4f2e3912">ITEM_STATE_INIT</a> : 文件初始状态</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage.html#ac65aceaa369b21b20772081f90f3e19f">ITEM_STATE_TRANSFERRING</a> : 文件传输中状态</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage.html#a9cd1c58b2bb250962057f302cf8aefbd">ITEM_STATE_OK</a> : 文件传输成功状态</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage.html#af650fdf32e3081c32499f5af2b2dd100">ITEM_STATE_FAIL</a> : 文件传输失败状态</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage.html#a26ba524d8266c7873b7a9ce69065598a">ITEM_STATE_CANCEL</a> : 文件传输取消状态 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a5266f8345b128f4f48a209f733de070a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5266f8345b128f4f48a209f733de070a">&#9670;&nbsp;</a></span>getReason()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">.StorageReason int com.juphoon.cloud.JCStorageItem.getReason </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取文件传输失败的原因</p>
<dl class="section return"><dt>Returns</dt><dd>原因值，当文件状态为 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_storage.html#af650fdf32e3081c32499f5af2b2dd100">JCStorage.ITEM_STATE_FAIL</a> 时有效。参见 <a class="el" href="group__error.html#ga6c62a4eaaf6ba50f3a1a7fe13507966f">REASON_NONE</a> "文件传输失败原因" </dd></dl>

</div>
</div>
<a id="af3f36f1bb43af10a374a09eff76f15c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3f36f1bb43af10a374a09eff76f15c2">&#9670;&nbsp;</a></span>getProgress()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.juphoon.cloud.JCStorageItem.getProgress </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取文件传输进度</p>
<dl class="section return"><dt>Returns</dt><dd>文件传输进度 </dd></dl>

</div>
</div>
<a id="a5f7c8688463fd019b37673ce152397ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f7c8688463fd019b37673ce152397ff">&#9670;&nbsp;</a></span>getFileSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.juphoon.cloud.JCStorageItem.getFileSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取文件大小</p>
<dl class="section return"><dt>Returns</dt><dd>文件大小 </dd></dl>

</div>
</div>
<a id="a820917d77ea0d9d756b7df4acf15c549"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a820917d77ea0d9d756b7df4acf15c549">&#9670;&nbsp;</a></span>getCookie()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long com.juphoon.cloud.JCStorageItem.getCookie </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取cookie</p>
<dl class="section return"><dt>Returns</dt><dd>cookie </dd></dl>

</div>
</div>
<a id="a54a461566e9fdf74d762a6236b643e77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54a461566e9fdf74d762a6236b643e77">&#9670;&nbsp;</a></span>getOperationId()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.juphoon.cloud.JCStorageItem.getOperationId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取操作id</p>
<dl class="section return"><dt>Returns</dt><dd>操作id </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cloud/src/main/im/com/juphoon/cloud/JCStorageItem.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
